package com.anpy.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName(value = "T_USER")
@ApiModel(description = "用户信息")
public class UserEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "用户ID", example = "1")
    private Integer id;


    @TableField(value = "user_name")
    @ApiModelProperty(value = "用户名", example = "张三")
    private String userName;

    @TableField(value = "header_photo")
    @ApiModelProperty(value = "头像URL", example = "https://example.com/avatar.jpg")
    private String headerPhoto;

    @TableField(value = "phone")
    @ApiModelProperty(value = "手机号", example = "13800138000")
    private String phone;

    @TableField(value = "wx_id")
    @ApiModelProperty(value = "微信ID", example = "wx123456")
    private String wxId;
    
    @TableField(value = "password")
    @ApiModelProperty(value = "密码", example = "******")
    private String password;

    @TableField(exist=false)
    @ApiModelProperty(value = "登录令牌", example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...")
    private String token;
}
